const mongoose = require("mongoose");

// users集合
const Schema = mongoose.Schema;

// 集合规范
const ProductType = {
  title: String, //标题
  introduction: String, //内容
  detail: String, //详情
  cover: Array, //封面
  productTime: Date,
};

// 创建模型
const ProductModel = mongoose.model("product", new Schema(ProductType));

module.exports = ProductModel;
